<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>监控中心 - 用户主页</title>

    <!-- Bootstrap Core CSS -->
    <link href="${request.getContextPath()}/public/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="${request.getContextPath()}/public/vendor/metisMenu/metisMenu.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="${request.getContextPath()}/public/dist/css/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="${request.getContextPath()}/public/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>

    <div id="wrapper">

        <!--嵌入头部跟菜单-->
        <#include "/inc/menu.html"/>

        <!-- Page Content -->
        <div id="page-wrapper">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-lg-12">
                        <h4 class="page-header">
                            <span>仓单编号：${receipt.no}</span>&nbsp;&nbsp;
                            <span>品种：${receipt.breed}</span>&nbsp;&nbsp;
                            <span>重量：${receipt.goodsWeight} <#if receipt.weightType=0>吨<#else>千克</#if> </span>&nbsp;&nbsp;
                            <span>仓库：${receipt.warehouse.name}</span>&nbsp;&nbsp;
                        </h4>

                        <div class="row">

                            <div class="col-lg-9">
                                <div class="panel panel-default">
                                    <div class="panel-heading">
                                        摄像机： ${camera.name}
                                    </div>
                                    <div class="panel-body">
                                        <div id="videoPlay"></div>
                                    </div>
                                    <!--<div class="panel-footer">-->
                                        <!--<p>-->
                                            <!--<button type="button" class="btn btn-default btn-circle btn-lg"><i class="fa fa-play"></i></button>-->
                                            <!--<button type="button" class="btn btn-default btn-circle btn-lg"><i class="fa fa-camera"></i></button>-->
                                            <!--<button type="button" class="btn btn-default btn-circle btn-lg"><i class="fa fa-video-camera"></i></button>-->
                                            <!--<button type="button" class="btn btn-default btn-circle btn-lg" style="float:right;"><i class="fa fa-arrows-alt"></i></button>-->
                                        <!--</p>-->
                                    <!--</div>-->
                                </div>
                            </div>
                            
                            <div class="col-lg-3">

                                <h4>切换视频</h4>
                                <#list cameraList as camera>
                                <div class="panel panel-default">
                                    <div class="panel-body">
                                        <a href="${request.getContextPath()}/home/vdio/info.do?repNo=${receipt.no}&cameraId=${camera.id}"><img class="img-responsive" src="${camera.coverImageUrl}"></a>
                                    </div>
                                    <div class="panel-footer">
                                        ${camera.name}
                                    </div>
                                </div>
                                </#list>
                            </div>

                        </div>

                    </div>
                    <!-- /.col-lg-12 -->
                </div>
                <!-- /.row -->
            </div>
            <!-- /.container-fluid -->
        </div>
        <!-- /#page-wrapper -->

    </div>
    <!-- /#wrapper -->

    <!-- jQuery -->
    <script src="${request.getContextPath()}/public/vendor/jquery/jquery.min.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="${request.getContextPath()}/public/vendor/bootstrap/js/bootstrap.min.js"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="${request.getContextPath()}/public/vendor/metisMenu/metisMenu.min.js"></script>

    <!-- Custom Theme JavaScript -->
    <script src="${request.getContextPath()}/public/dist/js/sb-admin-2.js"></script>


    <script src="${request.getContextPath()}/public/ckplayer/ckplayer.js"></script>

    <!--视频播放控件-->
    <script>

        //设置控件高度
        var height = $("#videoPlay").width()/16*9;
        $("#videoPlay").height(height);

        //播放视频
        var flashvars;
        flashvars={
            f: '${request.getContextPath()}/public/ckplayer/m3u8.swf',
            a: '${camera.m3u8}', //此处填写购买获取到的视频播放地址
            c: 0,
            p: 1,
            s: 4,
            lv: 1
        };
        var params = {bgcolor: '#FFF', allowFullScreen: true, allowScriptAccess: 'always', wmode: 'transparent'};
        CKobject.embedSWF("${request.getContextPath()}/public/ckplayer/ckplayer.swf", "videoPlay", "video", "100%", "100%", flashvars, params);
    </script>


</body>

</html>
